<?php get_header(); ?>
        <!-- main-->
        <div id="main">
			<div style="" id="slide1" class="banner_ngang slides">
				<div class="slides_container" style="display: block;">
                    <div class="slides_control">
                        <img src="<?php bloginfo('template_directory'); ?>/images/high.jpg">  
                    </div>
				</div>
				<div style="clear: both;"></div>
			</div>

			<div class="tinchinh">
				<div class="tin2">
					<a href="">
						<img src="http://media.content.vn/game8/2014/05/15/Untitled-4.jpg">
                    </a>
					<div class="tin2_content">
						 
						<div class="clear"></div>
						<div class="bg_black">
							<a href="http://game8.vn/game-online/cam-nhan-am-hac-tam-quoc-ngay-dau-alpha-test-4898.html">
							   </a>
							<a href="http://game8.vn/game-online/cam-nhan-am-hac-tam-quoc-ngay-dau-alpha-test-4898.html">
							    Cảm nhận Ám Hắc Tam Quốc ngày đầu Alpha Test
								</a>
							
						</div>
					</div>
				</div>
				<!--end tin1-->
				<div class="tin2">
					<a href="">
						<img src="http://media.content.vn/game8/2014/05/15/Untitled-4.jpg">
                    </a>
					<div class="tin2_content">
						 
						<div class="clear"></div>
						<div class="bg_black">
							<a href="http://game8.vn/game-online/cam-nhan-am-hac-tam-quoc-ngay-dau-alpha-test-4898.html">
							   </a>
							<a href="http://game8.vn/game-online/cam-nhan-am-hac-tam-quoc-ngay-dau-alpha-test-4898.html">
							    Cảm nhận Ám Hắc Tam Quốc ngày đầu Alpha Test
								</a>
							
						</div>
					</div>
				</div>
				<!--end tin1-->                
				<div class="tin2">
					<a href="http://game8.vn/game-online/mua-he-nay-game-thu-viet-se-duoc-boi-trong-game-4863.html">
						<img src="http://media.content.vn/game8/2014/03/19/wukong_game8.jpg"></a>
					<div class="tin2_content">
						<div class="clear"></div>
						<div class="bg_black"><a href="http://game8.vn/game-online/mua-he-nay-game-thu-viet-se-duoc-boi-trong-game-4863.html">Mùa hè này game thủ Việt sẽ được "bơi" trong game</a></div>
					</div>
				</div>
				<!--end tin1-->
				<!--end tin1-->
				<div class="tin2">
					<a href="http://game8.vn/game-online/chung-ta-nen-cam-on-game-4872.html">
						<img src="http://media.content.vn/game8/2014/05/13/8Bit-eLlicky-Mario.png"></a>
					<div class="tin2_content">
						<div class="clear"></div>
						<div class="bg_black"><a href="http://game8.vn/game-online/chung-ta-nen-cam-on-game-4872.html">Chúng ta nên cảm ơn Game</a></div>
					</div>
				</div>
				<!--end tin1-->
				<!--end tin1-->
				<div class="tin2">
					<a href="http://game8.vn/giai-tri/phan-loai-nhung-nhom-game-thu-thuong-gap-4864.html">
						<img src="http://media.content.vn/game8/2014/05/13/anh_hung_ban_phim.jpg"></a>
					<div class="tin2_content">
						<div class="clear"></div>
						<div class="bg_black"><a href="http://game8.vn/giai-tri/phan-loai-nhung-nhom-game-thu-thuong-gap-4864.html">Phân loại những nhóm game thủ thường gặp</a></div>
					</div>
				</div>
				<!--end tin1-->
				<!--end tin1-->
				<div class="tin2">
					<a href="http://game8.vn/game-online/‘game-nhai-muon-danh-mccorp-va-vng-hoanh-hanh-4831.html">
						<img src="http://media.content.vn/game8/2014/05/09/20140509-vngmccorp-02.jpg"></a>
					<div class="tin2_content">
						<div class="clear"></div>
						<div class="bg_black"><a href="http://game8.vn/game-online/‘game-nhai-muon-danh-mccorp-va-vng-hoanh-hanh-4831.html">‘Game nhái’ mượn danh MCCorp và VNG hoành hành</a></div>
					</div>
				</div>
				<!--end tin1-->
		</div>
		<!---end tinchinh-->
		<div class="clear"></div>      
        </div>
        <!-- end main-->
        <!-- bgwhite-->
        <div id="bgwhite">
        	<!-- left-->
        	<div class="left">
				<!-- Tab menu-->
				<div class="tab">
					<ul>
                    	<?php echo tab_custom_menus(); ?>
					</ul>
				</div>		
				<!-- End Tab menu-->
				
				<?php
					if ( have_posts() ) :
						while ( have_posts() ) : the_post();
						?>
                        <!-- tinbai-->
                        <div class="tinbai">
                            <div class="fl">
                                <a href="<?php the_permalink() ?>" title="<?php the_title(); ?>">
                                    <?php 
									if ( has_post_thumbnail() ) {
										the_post_thumbnail('thumbnail',array('class'=>'img_list_post'));
									}
									else{
										?>
                                        <img src="<?php bloginfo('template_directory'); ?>/images/no-image.jpg" class="no-image" />
                                        <?php
									}
										//echo get_the_post_thumbnail( the_ID(),'thumbnail', $attr ); 
									?> 
                                </a>
                            </div>
                            <div class="tinbai_content">
                                <a href="<?php the_permalink() ?>" title="<?php the_title(); ?>" >
                                    <b style="font-family:Arial"><?php the_title(); ?></b>
                                </a>
                                <span style="font-size:13px;"> 
                                <?php
                                    $my_excerpt = get_the_excerpt();
                                    if ( $my_excerpt != '' ) {
                                        echo $my_excerpt;
                                    }
                                    else{
                                        the_content('Đọc thêm...');
                                    }
                                ?>
                                </span>
                                <div class="acc">
                                    <span class="news">
										<?php 
											$category = get_the_category(); 
											if($category[0]){
											echo '<a href="'.get_category_link($category[0]->term_id ).'">'.$category[0]->cat_name.'</a>';
                                        }
                                        ?>
                                    </span>
									<?php
									if(get_the_tags())
									{
									?>
                                    <span class="news">    
                                        <?php
											$count = 0;
                                            foreach (get_the_tags() as $tag)
                                            {
												$count ++;
												if($count==1){
                                                echo "<a href=\"";
                                                echo get_tag_link($tag->term_id);
                                                echo "\">".$tag->name."</a>\n";
												}
                                            }
										?>
                                     </span>
										<?php
									}
                                    ?>                                    
                                    <span class="date"><?php the_time('F jS, Y') ?></span>
                                    <div class="box4_like">
                                    </div>
                                </div>
                            </div>
                            <div class="clear"></div>
                        </div>
                        <!-- end tinbai-->                        
                        <?php
						endwhile;
					else:
					endif;
				?>
            </div>
            <!-- end left-->
<?php get_sidebar(); ?>
<?php get_footer(); ?>    